﻿using Sayook.Framework.DbCore;
using System;

namespace DbCore.Template
{
    /// <summary>
    /// 银行
    /// </summary>
    [DbTable("busi_mch_bank")]
    public class BankInfo : DbModelBase
    {
        ///<summary>
        ///自增ID
        ///</summary>
        public int Id { get; set; }

        ///<summary>
        ///银行编码
        ///</summary>
        public string BankCode { get; set; }

        ///<summary>
        ///银行名称
        ///</summary>
        public string BankName { get; set; }

        ///<summary>
        ///创建者
        ///</summary>
        public int? CreatedByUser { get; set; }

        ///<summary>
        ///创建时间
        ///</summary>
        public DateTime? CreateOn { get; set; }

        ///<summary>
        ///修改者
        ///</summary>
        public int? LastModifiedByUser { get; set; }

        ///<summary>
        ///修改时间
        ///</summary>
        public DateTime? LastModifiedOn { get; set; }

        ///<summary>
        ///记录状态值
        ///</summary>
        public short Disable { get; set; }

        ///<summary>
        ///备注
        ///</summary>
        public string Remark { get; set; }
    }

    /// <summary>
    /// 数据库
    /// </summary>
    [DbTable("so_database_info")]
    public class DatabaseInfo : DbModelBase
    {
        ///<summary>
        ///自增ID
        ///</summary>
        [AutoIncrement]
        public int Id { get; set; }

        ///<summary>
        ///数据库名
        ///</summary>
        public string DbName { get; set; }

        ///<summary>
        ///编号
        ///</summary>
        public string Code { get; set; }

        ///<summary>
        ///描述
        ///</summary>
        public string Description { get; set; }

        /// <summary>
        /// 数据库连接字符串模板
        /// </summary>
        public string ConnectionTemplate { get; set; }

        ///<summary>
        ///创建时间
        ///</summary>
        public DateTime CreateDate { get; set; }

        ///<summary>
        ///最后修改日期
        ///</summary>
        public DateTime LastModifyDate { get; set; }
    }
}